﻿<%@ Page Language="C#" MasterPageFile="~/CmsMaster.Master" AutoEventWireup="true" CodeBehind="ReportContractor.aspx.cs" Inherits="ContractManagementSystem.Presentation.ReportManagement.ReportContractor" Title="Report >>> Contractor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="../../Styles/ClientStyle.css"/>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/JsLibrary.js"> </script>
    
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/jquery.js"> </script>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/menu.js"> </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <div class="CPF">
        <div class="CPFSearch">
            <div class="CPFclientleft">
                <asp:Label ID="Label1" runat="server">Full Name:</asp:Label>
            </div>
            <div class="CPFclientright">
                <asp:TextBox runat="server" ID="textUserName" CssClass="CPFTextBox"></asp:TextBox>
            </div>
            <div class="CPFclientleft">
                <asp:Label ID="Label2" runat="server">Email:</asp:Label>
            </div>
            <div class="CPFclientright">
                <asp:TextBox runat="server" ID="textEmail" CssClass="CPFTextBox"></asp:TextBox>
            </div>
            <div class="CPFButtonSearch">
                <asp:Button runat="server" ID="ButtonSearch" Text="Search" 
                            CssClass="CPFButton1" onclick="ButtonSearchClick"/>
                <asp:Button runat="server" ID="ButtonCreateReport" Text="Create Report" 
                            CssClass="CPFButton1" onclick="ButtonCreateReportClick" Width="97px"/>
            </div>
        </div>
        
        <div class="CPFGrid">
            <asp:ListView ID="ListViewClient" runat="server" >
                <LayoutTemplate>
                    <table class="repeaterTable"  >
                        <tr class="tableHeader" >
                            <td >User Name</td>        
                            <td >Full Name</td>
                            <td>Email</td>
                            <td >Phone Number 1</td>
                            <td >Phone Number 2</td>
                            <td >Address</td>
                            <td>Branch</td>
                            <td>Sort code</td>
                        </tr>
                        <tr id="itemPlaceholder" runat="server"></tr>
                    </table>
                    <table class="CPFrepeaterTable"  >
                        <tr class="CPFtableHeader" >
                        <td class="CPFPage">
                        <asp:DataPager runat="server" ID="ItemDataPager" PageSize="10" QueryStringField="page">
                            <Fields>
                                <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowNextPageButton="false" ButtonCssClass="CPFNumPage"/>
                                <asp:NumericPagerField ButtonCount="5" CurrentPageLabelCssClass="CPFCurrentNumPage" NumericButtonCssClass="CPFNumPage"/>
                                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="false" ButtonCssClass="CPFNumPage"/>
                            </Fields>                    
                        </asp:DataPager>                
                        </td>
                        </tr>
                    
                    </table>

                </LayoutTemplate>
            
                <ItemTemplate>

                    <tr class="CPFTr">
                        <td class="CPFtd" style="width: 100px;"><asp:Label ID="labelUserName" runat="server"><%#DataBinder.Eval(Container.DataItem, "UserName")%></asp:Label></td>
                        <td class="CPFtd"><asp:Label ID="labelFullName" runat="server"><%#DataBinder.Eval(Container.DataItem, "FullName")%></asp:Label></td>
                        <td class="CPFtd"><asp:Label ID="labelEmail" runat="server"><%#DataBinder.Eval(Container.DataItem, "Email")%></asp:Label></td>
                        <td class="CPFtd" style="width: 100px;"><asp:Label ID="labelPhoneNumber1" runat="server"><%#DataBinder.Eval(Container.DataItem, "PhoneNumber1")%></asp:Label></td>
                        <td class="CPFtd" style="width: 100px;"><asp:Label ID="labelPhoneNumber2" runat="server"><%#DataBinder.Eval(Container.DataItem, "PhoneNumber2")%></asp:Label></td>
                        <td class="CPFtd"><asp:Label ID="label3" runat="server"><%#DataBinder.Eval(Container.DataItem, "Address")%></asp:Label></td>
                        <td class="CPFtd"><asp:Label ID="label5" runat="server"><%#DataBinder.Eval(Container.DataItem, "Branch")%></asp:Label></td>
                        <td class="CPFtd" style="width: 50px;"><asp:Label ID="label4" runat="server"><%#DataBinder.Eval(Container.DataItem, "SortCode")%></asp:Label></td>
                    </tr> 
          
                </ItemTemplate>            
            </asp:ListView>
        </div>
        
        <div class="CPFResultsSearch"><asp:Label runat="server" ID="labelResultSearch"></asp:Label></div>
       

    </div> 
</asp:Content>